package com.domain;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

/**
* 
* @TableName users
*/
public class Users implements Serializable {

    /**
    * 
    */
    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer uid;
    /**
    * 
    */
    @NotBlank(message="[]不能为空")
    @Size(max= 20,message="编码长度不能超过20")
    @ApiModelProperty("")
    @Length(max= 20,message="编码长度不能超过20")
    private String uname;
    /**
    * 
    */
    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer uage;

    /**
    * 
    */
    private void setUid(Integer uid){
    this.uid = uid;
    }

    /**
    * 
    */
    private void setUname(String uname){
    this.uname = uname;
    }

    /**
    * 
    */
    private void setUage(Integer uage){
    this.uage = uage;
    }


    /**
    * 
    */
    private Integer getUid(){
    return this.uid;
    }

    /**
    * 
    */
    private String getUname(){
    return this.uname;
    }

    /**
    * 
    */
    private Integer getUage(){
    return this.uage;
    }

}
